// 高德地图组件入口文件
import AMapComponent from './AMapComponent.vue'
import { useAMap } from './useAMap'
import type {
  AMapConfig,
  MapOptions,
  DistrictConfig,
  MaskConfig,
  RoadConfig,
  AMapComponentProps,
  DistrictData,
  MapState,
  DistrictStyle
} from './types'

// 导出组件
export { AMapComponent }
export { useAMap }

// 导出类型
export type {
  AMapConfig,
  MapOptions,
  DistrictConfig,
  MaskConfig,
  RoadConfig,
  AMapComponentProps,
  DistrictData,
  MapState,
  DistrictStyle
}

// 导出工具函数
export {
  loadAMapAPI,
  createMap,
  createDistrictSearch,
  searchDistrict,
  createPolygon,
  clearOverlays,
  fitView,
  getDistrictCenter,
  formatDistrictData
} from './utils'

// 默认导出主组件
export default AMapComponent